<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		window.onload = function()
		{
			const n = 5
			for(let i = 1; i <= n; i++)
			{
				for(let k = i; k < n; k++)
				{
					document.write('&nbsp')
				}
				for(let j = 0; j < i * 2 - 1; j++)
				{
					document.write('*')
				}
				document.write('<br/>')
			}
		}
	</script>
</html>
